#include <stdio.h>
#include "fscontroller.h"
#include "fslayer.h"

using namespace std;

class DummyFS : public FSLayer {
	FUSE_GETATTR(const char* path, struct stat* mode) {
		printf("getattr: %s\n",path);
		// Go to the next FS layer (not needed here)
		// return FUSE_NEXT->getattr(path, mode, FUSE_NEXT_LAYER);
		return(0);
	}
};

int main(int argc, char **argv) {
	FSController fscon;
	DummyFS dummy;
	int ret = fscon.main(argc, argv, &dummy);
	printf("FUSE returns: %d", ret);
}
